import { Controller, Get, Req } from '@nestjs/common';

@Controller()
export class ApiController {
  @Get('getUserInfo')
  getUserInfo(@Req() req) {
    return req.user;
  }
}
